package no.sachmuld.methodcombination.examples.reflection.multipleinheritance;

/**
 *
 */
public class Main implements Runnable {

    @Override
    public void run() {

        String name ="John Smith";
        String degree = "Ph.D.";

        Person[] persons = {
                new Person(name),
                new Anonymous(name),
                new Doctor(name),
                new Graduate(name, degree),
                new ResearchDoctor(name, degree)
        };

        for (Person person : persons) {
            System.out.println(person);
        }

    }

    public static void main(String... args) {

        new Main().run();

    }
}
